using System;
using System.Collections.Generic;
using System.Text;
using OneSoft.EntityCore;

namespace BySoft.Server.Common.Schema
{
	[Serializable]
	public class BsPlandetailTable : TableInfo
	{
		public const string C_TABLENAME = "Bs_Plandetail"; 

		public const string C_PLANDETAILID = "PLANDETAILID";
		public const string C_PLANID = "PLANID";
		public const string C_BOMDETAILID = "BOMDETAILID";
		public const string C_MATERIALID = "MATERIALID";
		public const string C_TOTALNUM = "TOTALNUM";
		public const string C_TOTALWEIGHT = "TOTALWEIGHT";
		public const string C_EXPECTDATE = "EXPECTDATE";
		public const string C_ACTUALDATE = "ACTUALDATE";
				
		public BsPlandetailTable()
		{
			_tableName ="Bs_Plandetail";
		}

		protected static BsPlandetailTable _current;

		public static BsPlandetailTable Current
		{
			get
			{
				if (_current == null )
				{
					Initial();
				}
				return _current;
			}
		}

		private static void Initial()
		{
			_current = new BsPlandetailTable();

			_current.Add(C_PLANDETAILID, new ColumnInfo(C_PLANDETAILID, "", true, typeof(Decimal?)));
			_current.Add(C_PLANID, new ColumnInfo(C_PLANID, "", false, typeof(String)));
			_current.Add(C_BOMDETAILID, new ColumnInfo(C_BOMDETAILID, "", false, typeof(Decimal?)));
			_current.Add(C_MATERIALID, new ColumnInfo(C_MATERIALID, "", false, typeof(String)));
			_current.Add(C_TOTALNUM, new ColumnInfo(C_TOTALNUM, "", false, typeof(Decimal?)));
			_current.Add(C_TOTALWEIGHT, new ColumnInfo(C_TOTALWEIGHT, "", false, typeof(Decimal?)));
			_current.Add(C_EXPECTDATE, new ColumnInfo(C_EXPECTDATE, "", false, typeof(DateTime?)));
			_current.Add(C_ACTUALDATE, new ColumnInfo(C_ACTUALDATE, "", false, typeof(DateTime?)));
						
		}

		public ColumnInfo PLANDETAILID
		{
			get { return this[C_PLANDETAILID];}
		}

		public ColumnInfo PLANID
		{
			get { return this[C_PLANID];}
		}

		public ColumnInfo BOMDETAILID
		{
			get { return this[C_BOMDETAILID];}
		}

		public ColumnInfo MATERIALID
		{
			get { return this[C_MATERIALID];}
		}

		public ColumnInfo TOTALNUM
		{
			get { return this[C_TOTALNUM];}
		}

		public ColumnInfo TOTALWEIGHT
		{
			get { return this[C_TOTALWEIGHT];}
		}

		public ColumnInfo EXPECTDATE
		{
			get { return this[C_EXPECTDATE];}
		}

		public ColumnInfo ACTUALDATE
		{
			get { return this[C_ACTUALDATE];}
		}

		
	}
}


